package com.education.platform.dao;

import com.education.platform.common.dao.BaseDao;
import com.education.platform.dao.model.ConsumeRecordModel;
import com.education.platform.dao.model.UserOrderModel;
import org.springframework.stereotype.Repository;
import com.education.platform.dao.entity.UserOrderDO;

import java.util.List;

/**
* describe: 订单
* @author : tomato
* @date: 2020-06-16 11:49:53.439
**/
@Repository
public interface UserOrderDao extends BaseDao<UserOrderDO> {


    /**
     * 获取订单和详情
     * @param query
     * @return
     */
   List<UserOrderModel> getOrderAndDetails(UserOrderModel query);


    /**
     * 获取消费记录
     * @param query
     * @return
     */
    List<ConsumeRecordModel> getConsumeList(ConsumeRecordModel query);

    /**
     * 获取已经支付的订单
     * @return
     */
    List<UserOrderDO> getAreadyPayOrderList(UserOrderDO userOrder);
}